﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace HarveyNash.RefactoringAndCodeSmell.CodeSmell.LongParameterList
{
    public static class Before
    {
        public static XmlElement CreateAddressElement(XmlDocument xmlDocument, string houseNumber, string street, string city, string country)
        {
            XmlElement element = xmlDocument.CreateElement("Address");
            element.SetAttributeNode(CreateAttribute(xmlDocument, "Number", houseNumber));
            element.SetAttributeNode(CreateAttribute(xmlDocument, "Street", street));
            element.SetAttributeNode(CreateAttribute(xmlDocument, "City", city));
            element.SetAttributeNode(CreateAttribute(xmlDocument, "Country", country));

            return element;
        }

        private static XmlAttribute CreateAttribute(XmlDocument xmlDocument, string name, string value)
        {
            //CreateAttribute code
            //...
            throw new NotImplementedException();
        }
    }
}
